import config from "./config.json"

// 创建ws链接
const ws = new WebSocket(config.webSocketUrl);

ws.onopen = function(){
    console.log("链接服务器成功");
}

ws.onclose = function(){
    console.log("与服务器断开");
}

ws.onmessage = function(evt){
    console.log("收到服务器信息" , evt.data);
}